const char * sParaStyle;
Name of style (to a maximum of 31 characters). Use:"Any" for Any paragraph style (i.e., to not include paragraph style in search criteria; default setting.)
"No style" for No Style
short cAlignment;
kFCAttrAny for Any alignment (i.e., to not include alignment in search criteria)
kAlignmentLeft for Left (these are enum eAlign)
kAlignmentCenter for Center
kAlignmentRight for Right
kAlignmentJustify for Justify
kAlignmentForce for Force Justify
short cLeadingType;
kFCAttrAny for Any leading method (i.e., to not include leading method in search criteria)Story editor only. The PGetChangeParaAttr query works only in story editor.
kLeadProportional for Proportional
kLeadTopOfCaps for Top of Caps
kLeadBaselinefor Baseline
Example. The following example changes all left-aligned text in the current publication to justifed text. (Notice that it sets all other Find and Change attributes to Any.) It then queries for the Find and Change paragraph attributes.
PFindParaAttr("Any", kAlignmentLeft, kFCAttrAny);
PChangeParaAttr("Any", kALignmentJustify, kFCAttrAny);
PFindTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PChangeTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PFindTypeAttr2(kFCAttrAny, kFCAttrAny, "Any", kFCAttrAny);
PChangeTypeAttr2(kFCAttrAny, kFCAttrAny, "Any", kFCAttrAny);
PChangeAll("", "", kFCSAllStories, kFCAnyCase, kFCAllInstances, kFCUseAttributes);
PGetFindParaAttr(); // Reply: "Any", 0, kFCAttrAny
PGetChangeParaAttr(); // Reply: "Any", 3, kFCAttrAny
The PChangeNext, PChangeParaAttr, PChangeTypeAttr1, PChangeTypeAttr2, PChangeWindow, PFind, PFindNext, PFindParaAttr, PFindTypeAttr1, PFindTypeAttr2, and PFindWindow commands
Comments or suggestions? Contact Adobe Developer Support